home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / webshell / nsIDocumentLoaderFactory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  131 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDocumentLoaderFactory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDocumentLoaderFactory_h__
  6. #define __gen_nsIDocumentLoaderFactory_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIChannel; /* forward declaration */
  18.  
  19. class nsIContentViewer; /* forward declaration */
  20.  
  21. class nsIStreamListener; /* forward declaration */
  22.  
  23. class nsIDocument; /* forward declaration */
  24.  
  25. class nsILoadGroup; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsIDocumentLoaderFactory */
  29. #define NS_IDOCUMENTLOADERFACTORY_IID_STR "df15f850-5d98-11d4-9f4d-0010a4053fd0"
  30.  
  31. #define NS_IDOCUMENTLOADERFACTORY_IID \
  32.   {0xdf15f850, 0x5d98, 0x11d4, \
  33.     { 0x9f, 0x4d, 0x00, 0x10, 0xa4, 0x05, 0x3f, 0xd0 }}
  34.  
  35. /**
  36.  * To get a component that implements nsIDocumentLoaderFactory
  37.  * for a given mimetype, use nsICategoryManager to find an entry
  38.  * with the mimetype as its name in the category "Gecko-Content-Viewers".
  39.  * The value of the entry is the contractid of the component.
  40.  * The component is a service, so use GetService, not CreateInstance to get it.
  41.  */
  42. class NS_NO_VTABLE nsIDocumentLoaderFactory : public nsISupports {
  43.  public: 
  44.  
  45.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENTLOADERFACTORY_IID)
  46.  
  47.   /* nsIContentViewer createInstance (in string aCommand, in nsIChannel aChannel, in nsILoadGroup aLoadGroup, in string aContentType, in nsISupports aContainer, in nsISupports aExtraInfo, out nsIStreamListener aDocListenerResult); */
  48.   NS_IMETHOD CreateInstance(const char *aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const char *aContentType, nsISupports *aContainer, nsISupports *aExtraInfo, nsIStreamListener **aDocListenerResult, nsIContentViewer **_retval) = 0;
  49.  
  50.   /* nsIContentViewer createInstanceForDocument (in nsISupports aContainer, in nsIDocument aDocument, in string aCommand); */
  51.   NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char *aCommand, nsIContentViewer **_retval) = 0;
  52.  
  53.   /* nsIDocument createBlankDocument (in nsILoadGroup aLoadGroup); */
  54.   NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIDocument **_retval) = 0;
  55.  
  56. };
  57.  
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSIDOCUMENTLOADERFACTORY \
  60.   NS_IMETHOD CreateInstance(const char *aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const char *aContentType, nsISupports *aContainer, nsISupports *aExtraInfo, nsIStreamListener **aDocListenerResult, nsIContentViewer **_retval); \
  61.   NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char *aCommand, nsIContentViewer **_retval); \
  62.   NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIDocument **_retval); 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  65. #define NS_FORWARD_NSIDOCUMENTLOADERFACTORY(_to) \
  66.   NS_IMETHOD CreateInstance(const char *aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const char *aContentType, nsISupports *aContainer, nsISupports *aExtraInfo, nsIStreamListener **aDocListenerResult, nsIContentViewer **_retval) { return _to CreateInstance(aCommand, aChannel, aLoadGroup, aContentType, aContainer, aExtraInfo, aDocListenerResult, _retval); } \
  67.   NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char *aCommand, nsIContentViewer **_retval) { return _to CreateInstanceForDocument(aContainer, aDocument, aCommand, _retval); } \
  68.   NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIDocument **_retval) { return _to CreateBlankDocument(aLoadGroup, _retval); } 
  69.  
  70. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  71. #define NS_FORWARD_SAFE_NSIDOCUMENTLOADERFACTORY(_to) \
  72.   NS_IMETHOD CreateInstance(const char *aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const char *aContentType, nsISupports *aContainer, nsISupports *aExtraInfo, nsIStreamListener **aDocListenerResult, nsIContentViewer **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstance(aCommand, aChannel, aLoadGroup, aContentType, aContainer, aExtraInfo, aDocListenerResult, _retval); } \
  73.   NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char *aCommand, nsIContentViewer **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceForDocument(aContainer, aDocument, aCommand, _retval); } \
  74.   NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIDocument **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateBlankDocument(aLoadGroup, _retval); } 
  75.  
  76. #if 0
  77. /* Use the code below as a template for the implementation class for this interface. */
  78.  
  79. /* Header file */
  80. class nsDocumentLoaderFactory : public nsIDocumentLoaderFactory
  81. {
  82. public:
  83.   NS_DECL_ISUPPORTS
  84.   NS_DECL_NSIDOCUMENTLOADERFACTORY
  85.  
  86.   nsDocumentLoaderFactory();
  87.  
  88. private:
  89.   ~nsDocumentLoaderFactory();
  90.  
  91. protected:
  92.   /* additional members */
  93. };
  94.  
  95. /* Implementation file */
  96. NS_IMPL_ISUPPORTS1(nsDocumentLoaderFactory, nsIDocumentLoaderFactory)
  97.  
  98. nsDocumentLoaderFactory::nsDocumentLoaderFactory()
  99. {
  100.   /* member initializers and constructor code */
  101. }
  102.  
  103. nsDocumentLoaderFactory::~nsDocumentLoaderFactory()
  104. {
  105.   /* destructor code */
  106. }
  107.  
  108. /* nsIContentViewer createInstance (in string aCommand, in nsIChannel aChannel, in nsILoadGroup aLoadGroup, in string aContentType, in nsISupports aContainer, in nsISupports aExtraInfo, out nsIStreamListener aDocListenerResult); */
  109. NS_IMETHODIMP nsDocumentLoaderFactory::CreateInstance(const char *aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const char *aContentType, nsISupports *aContainer, nsISupports *aExtraInfo, nsIStreamListener **aDocListenerResult, nsIContentViewer **_retval)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* nsIContentViewer createInstanceForDocument (in nsISupports aContainer, in nsIDocument aDocument, in string aCommand); */
  115. NS_IMETHODIMP nsDocumentLoaderFactory::CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char *aCommand, nsIContentViewer **_retval)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* nsIDocument createBlankDocument (in nsILoadGroup aLoadGroup); */
  121. NS_IMETHODIMP nsDocumentLoaderFactory::CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIDocument **_retval)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125.  
  126. /* End of implementation class template. */
  127. #endif
  128.  
  129.  
  130. #endif /* __gen_nsIDocumentLoaderFactory_h__ */
  131.